package com.neuedu.service;

import java.util.List;

import com.neuedu.dao.User;
import com.neuedu.dao.UserDao;
import com.neuedu.dao.UserDaoImpl;

public class UserServiceImpl implements UserService {

	private UserDao ud = new UserDaoImpl();
	
	@Override
	public boolean add(User u) {
		return ud.add(u);
	}

	@Override
	public boolean del(int id) {
		return ud.del(id);
	}

	@Override
	public boolean modify(User u) {
		return ud.modify(u);
	}

	@Override
	public User queryByNamePwd(String name, String pwd) {
		return ud.queryByNamePwd(name, pwd);
	}

	@Override
	public List<User> queryAll() {
		return ud.queryAll();
	}

}
